import Vue from 'vue'
import VueRouter from 'vue-router'
import login from '../views/login.vue'
import Register from '../views/register.vue'
import Home from '../views/HomeView.vue'
import Users from '../views/houtai/Users.vue'
import Img from '../views/houtai/Imginfo.vue'
import Area from '../views/houtai/Areainfo.vue'
import Furniture from '../views/houtai/Furniture.vue'
import ClientInfo from '../views/houtai/ClientInfo.vue'
import Houserinfo from '../views/houtai/Houserinfo.vue'
// Houserinfo

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    component: login
  },
  {
    path: '/login',
    name: 'login',
    component: login
  },
  {
    path: '/reg',
    name: 'Register',
    component: Register
  },
  {
    path: '/home',
    component: Home,
    children:[
      {path:'/users',component:Users},
      {path:'/img',component:Img},
      {path:'/area',component:Area},
      {path:'/furniture',component:Furniture},
      {path:'/client',component:ClientInfo},
      {path:'/houser',component:Houserinfo}
    ]
  }
]

const router = new VueRouter({
  routes
})

export default router
